<?php
include("includes/init.php");
$title="Tin tức | $TenSite";
include ("template/Header.php");
?>
 
<div class="c"></div>
</div>
</div>
</div>
<script type="text/javascript">
   shop.header.conf.numItemWish	= 0;
  shop.header.conf.numOrderI 	= 0;
  jQuery(document).ready(function(){
	shop.header.init();
		shop.header.menuCat();  });
</script></div>
<div class="main home_ver7">
    <div class="main-content">
				<div class="v6ContentCat">
<div class="">
<div class="main-width v7Soldbg ">
<div class="mTop10"></div>
<div class="c"></div>
	
    
<?php
 
$sqlll = @mysql_query("select * from duan where TrangThai = '1' and TinTuc = '1' order by SapXep asc, IDDuAn desc");
$sotin=20;
$totalpage=round((@mysql_num_rows($sqlll)/$sotin),0);
$linkss="tin-tuc-trang-%s.html";
include("includes/PhanTrang.php");
$PhanTrang=phantrang($_GET['page'], $totalpage, $linkss, $show);
$sql = @mysql_query("select * from duan where TrangThai = '1' and TinTuc = '1' order by SapXep asc, IDDuAn desc limit  $page, $page1");
while ($rows = @mysql_fetch_array($sql))
{
    $url=stripUnicode($rows['TenDuAn']);
    $url=ereg_replace('[[:space:]]+', '-', trim($url));
    $NoiDung=''.substr(strip_tags($rows['NoiDung']),0,2400).'';
        $NoiDung=substr($NoiDung, 0, strrpos($NoiDung, ' ')).'...';
     echo '<div class="list-rands" style="width: 100%;padding-bottom: 20px;margin-top:20px">
<div class="box-frame-center">
<div class="v6ItemHotImg v7Relative" lang="25">
 
 <table><tr><td>
<a href="'.$link.'Du-An-'.$rows['IDDuAn'].'-'.$url.'.html">
<img alt="'.$rows['TenDuAn'].' - '.$rows['Gia'].'" src="'.$rows['LoGo'].'" height="290" width="290">
</a>
</td><td style="width: 700px;">
<div class="v6ContentHot" style="width: 650px;padding: 15px;">
<a  href="'.$link.'Du-An-'.$rows['IDDuAn'].'-'.$url.'.html" title="Xem chi ti?t deal" style="font-size: 15pt;">'.$rows['TenDuAn'].'</a> 					 
<p>'.$NoiDung.'</p> 
</div>
<a style="margin: 20px;" href="'.$link.'Du-An-'.$rows['IDDuAn'].'-'.$url.'.html" class="v7view fr fixPNG mTop20"><img src="images/blank.gif" height="30" width="61"></a>
</td></tr></table>
<div class="v7InfoType">
<div class="c"></div>
</div>
</div> 
 
</div>
</div>';
     
}
echo '<table align=center class=rowtable2 cellpadding=5 cellspacing=1 border=0 width="100%"><tr><td align=center >'.$PhanTrang.'</td></tr></table>';
?>	

 
 
<div class="c"></div>
</div>
</div>
</div>
<script type="text/javascript">shop.jCarouse.fixWidth();</script>
<script language="javascript">
		
		jQuery(document).ready(function(){
			jQuery(".v6ItemHotImg").hover(
			  function () {
				var id = jQuery(this).attr('lang');
				jQuery("#itemHotMoreDetail"+id).fadeIn(300);
			  },
			  function () {
				var id = jQuery(this).attr('lang');
				jQuery("#itemHotMoreDetail"+id).fadeOut(300);
			  }
		   );
		});
		
	</script>
</div>
<?php
include ("template/Footer.php");
?> 